shut down domain when last vCPU goes down
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Feb 2018 13:00:31 +0000 (14:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Feb 2018 13:00:31 +0000 (14:00 +0100)
commitd3b230fc46ee9853064e167f6cb4da8ea0a08112
tree17c305c9b3c6c85abd0e082a31ee6eaa9fd96898
parent0091daa9d911995327ef92c3ce663c3c569c8c6e
shut down domain when last vCPU goes down

I've just had to deal with an early boot crash of Linux which occurred
so early that even "earlyprintk=xen" did not produce any useful output.
Hence the domain appeared to hang, while in fact it had brought down its
only vCPU. By translating this to a shutdown, the situation will be
better recognizable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/common/domain.c